.class public Lcom/waiqin365/lightapp/kaoqin/c/a;
.super Ljava/lang/Object;


# direct methods
.method public static a(Lcom/waiqin365/lightapp/kaoqin/c/f;)Lcom/waiqin365/lightapp/kaoqin/c/u;
    .locals 4

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/c/f;->b()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :pswitch_0
    const/4 v0, 0x0

    :goto_0
    return-object v0

    :pswitch_1
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/af;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/af;-><init>()V

    goto :goto_0

    :pswitch_2
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/ac;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/ac;-><init>()V

    goto :goto_0

    :pswitch_3
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/z;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/z;-><init>()V

    goto :goto_0

    :pswitch_4
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/y;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/y;-><init>()V

    goto :goto_0

    :pswitch_5
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/aa;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/aa;-><init>()V

    goto :goto_0

    :pswitch_6
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/ab;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/ab;-><init>()V

    goto :goto_0

    :pswitch_7
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/ad;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/ad;-><init>()V

    goto :goto_0

    :pswitch_8
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/v;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/v;-><init>()V

    goto :goto_0

    :pswitch_9
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/x;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/x;-><init>()V

    goto :goto_0

    :pswitch_a
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/w;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/w;-><init>()V

    goto :goto_0

    :pswitch_b
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/t;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/t;-><init>()V

    goto :goto_0

    :pswitch_c
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/ae;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/ae;-><init>()V

    goto :goto_0

    :pswitch_d
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/r;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/r;-><init>()V

    goto :goto_0

    :pswitch_e
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/s;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/s;-><init>()V

    goto :goto_0

    :pswitch_f
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/c/f;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/c/f;-><init>()V

    goto :goto_0

    :pswitch_10
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/c/g;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/c/g;-><init>()V

    goto :goto_0

    :pswitch_11
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/c/e;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/c/e;-><init>()V

    goto :goto_0

    :pswitch_12
    new-instance v1, Lcom/waiqin365/lightapp/kaoqin/c/c/h;

    move-object v0, p0

    check-cast v0, Lcom/waiqin365/lightapp/kaoqin/c/c/d;

    iget-object v2, v0, Lcom/waiqin365/lightapp/kaoqin/c/c/d;->a:Ljava/lang/String;

    move-object v0, p0

    check-cast v0, Lcom/waiqin365/lightapp/kaoqin/c/c/d;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kaoqin/c/c/d;->h:Ljava/lang/String;

    check-cast p0, Lcom/waiqin365/lightapp/kaoqin/c/c/d;

    iget v3, p0, Lcom/waiqin365/lightapp/kaoqin/c/c/d;->i:I

    invoke-direct {v1, v2, v0, v3}, Lcom/waiqin365/lightapp/kaoqin/c/c/h;-><init>(Ljava/lang/String;Ljava/lang/String;I)V

    move-object v0, v1

    goto :goto_0

    :pswitch_13
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/b/i;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/b/i;-><init>()V

    goto/16 :goto_0

    :pswitch_14
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/b/h;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/b/h;-><init>()V

    goto/16 :goto_0

    :pswitch_15
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/b/g;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/b/g;-><init>()V

    goto/16 :goto_0

    :pswitch_16
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/b/e;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/b/e;-><init>()V

    goto/16 :goto_0

    :pswitch_17
    new-instance v0, Lcom/waiqin365/lightapp/kaoqin/c/b/f;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/kaoqin/c/b/f;-><init>()V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_4
        :pswitch_5
        :pswitch_7
        :pswitch_6
        :pswitch_9
        :pswitch_8
        :pswitch_c
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_a
        :pswitch_b
        :pswitch_d
        :pswitch_e
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_f
        :pswitch_10
        :pswitch_11
        :pswitch_12
        :pswitch_13
        :pswitch_14
        :pswitch_15
        :pswitch_16
        :pswitch_17
    .end packed-switch
.end method

.method public static a(Lcom/waiqin365/lightapp/kaoqin/c/f;Z)Lcom/waiqin365/lightapp/kaoqin/c/u;
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    const-string/jumbo v0, ""

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/c/f;->e()Ljava/util/HashMap;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/c/f;->e()Ljava/util/HashMap;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V

    :cond_0
    :try_start_0
    const-string/jumbo v0, "%s%s"

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->d()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    const/4 v3, 0x1

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/c/f;->c()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v0, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    if-eqz p1, :cond_1

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->c()Lcom/fiberhome/gaea/client/c/c;

    move-result-object v2

    iget-object v2, v2, Lcom/fiberhome/gaea/client/c/c;->d:Ljava/lang/String;

    invoke-static {v2}, Lcom/waiqin365/compons/b/a;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v3

    if-nez v3, :cond_1

    const-string/jumbo v3, "Host"

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->c()Lcom/fiberhome/gaea/client/c/c;

    move-result-object v4

    iget-object v4, v4, Lcom/fiberhome/gaea/client/c/c;->d:Ljava/lang/String;

    invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-static {}, Lcom/fiberhome/gaea/client/c/b;->c()Lcom/fiberhome/gaea/client/c/c;

    move-result-object v3

    iget-object v3, v3, Lcom/fiberhome/gaea/client/c/c;->d:Ljava/lang/String;

    invoke-virtual {v0, v3, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    :cond_1
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/c/f;->d()Ljava/util/HashMap;

    move-result-object v2

    invoke-static {v0, v1, v2}, Lcom/waiqin365/compons/b/a;->c(Ljava/lang/String;Ljava/util/HashMap;Ljava/util/HashMap;)Ljava/lang/String;

    move-result-object v1

    invoke-static {p0}, Lcom/waiqin365/lightapp/kaoqin/c/a;->a(Lcom/waiqin365/lightapp/kaoqin/c/f;)Lcom/waiqin365/lightapp/kaoqin/c/u;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kaoqin/c/u;->a(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_2

    const/16 v2, 0x3ed

    iput v2, v0, Lcom/waiqin365/lightapp/kaoqin/c/u;->e:I

    :cond_2
    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kaoqin/c/u;->a(Z)V
    :try_end_0
    .catch Ljava/net/SocketTimeoutException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/net/UnknownHostException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2

    :goto_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/c/f;->g()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kaoqin/c/u;->a(I)V

    return-object v0

    :catch_0
    move-exception v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u8003\u52e4\u63a5\u53e3\u901a\u4fe1\u8d85\u65f6\u5f02\u5e38="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/net/SocketTimeoutException;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, " cmdtype:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/c/f;->b()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/waiqin365/lightapp/kaoqin/c/a;->a(Lcom/waiqin365/lightapp/kaoqin/c/f;)Lcom/waiqin365/lightapp/kaoqin/c/u;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/kaoqin/c/u;->a(Z)V

    const/16 v1, 0x3ea

    iput v1, v0, Lcom/waiqin365/lightapp/kaoqin/c/u;->e:I

    iput-boolean v6, v0, Lcom/waiqin365/lightapp/kaoqin/c/u;->f:Z

    goto :goto_0

    :catch_1
    move-exception v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u8003\u52e4\u63a5\u53e3\u901a\u4fe1\u4f4d\u7f6e\u57df\u540d\u5f02\u5e38="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/net/UnknownHostException;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, " cmdtype:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/c/f;->b()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/waiqin365/lightapp/kaoqin/c/a;->a(Lcom/waiqin365/lightapp/kaoqin/c/f;)Lcom/waiqin365/lightapp/kaoqin/c/u;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/kaoqin/c/u;->a(Z)V

    const/16 v1, 0x3e9

    iput v1, v0, Lcom/waiqin365/lightapp/kaoqin/c/u;->e:I

    iput-boolean v6, v0, Lcom/waiqin365/lightapp/kaoqin/c/u;->f:Z

    goto :goto_0

    :catch_2
    move-exception v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "\u8003\u52e4\u63a5\u53e3\u901a\u4fe1\u5f02\u5e38="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, " cmdtype:"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/c/f;->b()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/d;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/waiqin365/lightapp/kaoqin/c/a;->a(Lcom/waiqin365/lightapp/kaoqin/c/f;)Lcom/waiqin365/lightapp/kaoqin/c/u;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/waiqin365/lightapp/kaoqin/c/u;->a(Z)V

    const/16 v1, 0x3ec

    iput v1, v0, Lcom/waiqin365/lightapp/kaoqin/c/u;->e:I

    goto/16 :goto_0
.end method
